import request from '@/utils/request'

export function getListPage(params) { // 获取项目类型列表
  return request({
    url: '/project/pageProjectTypesList',
    method: 'get',
    params
  })
}

export function getProjectTypes(params) { // 获取项目类型列表,无分页
  return request({
    url: '/project/getProjectTypes',
    method: 'get',
    params
  })
}

export function createRow(data) { // 创建项目类型
  return request({
    url: '/project/saveProjectType',
    method: 'post',
    data
  })
}

export function updateRow(data) { // 修改项目类型
  return request({
    url: '/project/saveProjectType',
    method: 'post',
    data
  })
}

export function deleteRow(params) { // 删除项目类型
  return request({
    url: '/project/delProjectType',
    method: 'delete',
    params
  })
}

export function deleteBatch(params) { // 批量删除项目类型
  return request({
    url: '/project/delProjectTypes',
    method: 'delete',
    params
  })
}
